Get

Function

Get user rule restrictions.

Request Message

None.

Sample:

POST /API/AccountRules/Get HTTP/1.1
{
    "version": "1.0",
    "data": {
    }
}

Response Message

Parameter Description

Table 1
ParameterRangeTypeDescription
usernameobjectRule restrictions of username,see Table 2 for more information.
passwordobjectRule restrictions of password,see Table 2 for more information.
Table 2
ParameterRangeTypeDescription
min_length1-8intMinimum length.
max_length16-16intMaximum length.
character_combinations_num1-4intAt least the number of character combinations.
character_combinations"ALPHA",
"alpha",
"Alpha",
"digit",
"special"
string arrayCharacter combination list.
specialstringSpecial character.
not_same_usernameboolCan be the same as the user name.
deny_passwordstring arrayThe password cannot be set the same as in the array.

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "username": 
        {
            "min_length": 1,
            "character_combinations": 
            [
                "Alpha",
                "digit",
                "special"
            ],
            "special": "_"
        },
        
        "password": 
        {
            "min_length": 8,
            "not_same_username": true,
            "character_combinations_num": 2,
            "character_combinations": 
            [
                "ALPHA",
                "alpha",
                "digit",
                "special"
            ],
            "special": "`~!@#$%^&*()-_=+\\|[{}];:'\",<.>/?"
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.